package com.czk.model.ptotorype.practice.deepcopy;

import java.io.Serializable;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/8/19 23:31
 */
public class Clothes implements Cloneable, Serializable {
    private String color;

    public Clothes(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Clothes{" +
                "color='" + color + '\'' +
                '}';
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
